###############################################################
#
# Master Makefile for all MCF5282 Software Projects
#
# To use, change to this directory, and enter the command:
#
#    make <project>
#
# where <project> is one of the ones listed in this makefile.
#
###############################################################

RM      = rm -fr

###############################################################

help:
	@echo
	@echo "Please supply one of the following options to 'make':"
	@echo
	@echo "  simple            Basic project provided as a template"
	@echo "  all               Build all of the above"
	@echo
	@echo "  [project]-clean   Clean specific project"
	@echo "                    i.e. 'simple-clean'"
	@echo "  all-clean         Clean all projects"
	@echo

########################################################################

simple:
	@ $(MAKE) -f build/diab/simple.make all \
	OBJDIR=obj/diab/

simple-clean :
	$(RM) obj/diab/simple

########################################################################

init-clean :
	$(RM) obj/diab/init
	
########################################################################

all:			\
	simple
	
all-clean:
	$(RM) obj/diab
	
########################################################################
